package com.jugheadzhou.auth.entity;

import lombok.Data;
import org.beetl.sql.annotation.entity.AutoID;
import org.beetl.sql.annotation.entity.Table;

import java.time.LocalDateTime;

/**
 * @author jugheadzhou
 */
@Data
@Table(name = "user_token")
public class UserToken implements java.io.Serializable {
    private static final long serialVersionUID = 1L;

    @AutoID
    private Integer id;
    /**
     * 登陆人ID
     */
    private Integer userId;
    /**
     * 登陆人账号
     */
    private String username;
    /**
     * 登陆人昵称
     */
    private String nickname;
    /**
     * 登陆token
     */
    private String token;
    /**
     * 登陆时间
     */
    private LocalDateTime loginTime;
    /**
     * 过期时间
     */
    private LocalDateTime expireTime;
    /**
     * 是否删除（0-否，1-是）
     */
    private Integer deleted;


}
